<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "images".
 *
 * @property int $id
 * @property string $path 照片的路径
 * @property string $makeTime 拍照时间
 * @property string $latitude 纬度
 * @property string $longitude 维度
 * @property string $remark 图片说明
 */
class Images extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'images';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['path'], 'required'],
            [['makeTime'], 'safe'],
            [['latitude', 'longitude'], 'number'],
            [['path'], 'string', 'max' => 64],
            [['remark'], 'string', 'max' => 512],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'path' => 'Path',
            'makeTime' => 'Make Time',
            'latitude' => 'Latitude',
            'longitude' => 'Longitude',
            'remark' => 'Remark',
        ];
    }
}
